package com.youlu.campus.admin.community.controller;

import com.youlu.campus.service.activity.UserParticipateActivityInfoService;
import com.yuelin.infrastructure.quantum.common.QResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ParticipateActivityController {

    @Autowired
    private UserParticipateActivityInfoService userParticipateActivityInfoService;

   @GetMapping("/export/participate")
    public QResult export(){
       userParticipateActivityInfoService.exportUserParticipate();
       return QResult.success(null);
    }

    @GetMapping("/public/init/join-user")
    public QResult userJoined(){
        userParticipateActivityInfoService.initUserJoined();
        return QResult.success(null);
    }
}
